<?php
/**
 * Created by PhpStorm.
 * User: asus
 * Date: 2018/9/24
 * Time: 23:43
 */

class Phone
{
    private $name;
    private $price;
    private $brand;
    private $made;

    function show()
    {
        echo $this->brand."是".$this->name."价格".$this->price."块钱".$this->made."生产"."<br>";
    }

    function __set($name, $value)
    {
        $this->$name=$value;
    }
}